package eyal.skop;
import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnPreparedListener;
import android.net.Uri;
import android.os.Bundle;
import android.view.SurfaceHolder;
import android.view.View;
import android.widget.*;


public class main extends Activity implements OnPreparedListener{
	  
		Button stam;
		Button bin;
		@Override
	    public void onCreate(Bundle savedInstanceState)
	    {
	        super.onCreate(savedInstanceState);
	        bin = new Button(this);
	        bin.setOnClickListener(new View.OnClickListener() {
				
				@Override
				public void onClick(View v) {
					startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.allbiz.co.il/hatavas/data/173175_%D7%AA%D7%9E%D7%95%D7%A0%D7%94%20%D7%9E%D7%91%D7%93%20%D7%A4%D7%A8%D7%97%D7%99%D7%9D.jpg"))); 
					
				}
			});
	        setContentView(bin);
	                 
	    }
	   @Override
	    public void onPrepared(MediaPlayer mp) {
	        // TODO Auto-generated method stub

	    }
	    
	/*
	 public void onCreate(Bundle b){
	        super.onCreate(b);
	        VideoView videoView = new VideoView(this);
	        setContentView(videoView);

	        videoView.setVideoPath("http://www.youtube.com/watch?v=i9gEdxzsxmA");
	        videoView.setMediaController(new MediaController(this));
	        videoView.requestFocus();
	        videoView.start();
	    }
	    */
}
